#ifndef __STORMWIDGET_STORMWIDGET_UILIBRARY_COPTIONUI_OPTIONUI_H
#define __STORMWIDGET_STORMWIDGET_UILIBRARY_COPTIONUI_OPTIONUI_H

#include "ControlUI.h"

class COptionUI: public CControlUI
{
public:
	COptionUI(void);
	virtual ~COptionUI(void);
	LPCTSTR GetClass() const;
	UINT GetControlFlags() const;

	bool Activate();

	bool IsChecked() const;
	void SetCheck(bool bSelected);
	void SetWidth(int cxWidth);

	void Event(TEventUI& event);

	SIZE EstimateSize(SIZE szAvailable);
	void DoPaint(HDC hDC, const RECT& rcPaint);
	void SetAttribute(LPCTSTR pstrName, LPCTSTR pstrValue);

protected:
	bool m_bSelected;
	UINT m_uStyle;
	UINT m_uButtonState;
	int m_cxWidth;
};
#endif //__STORMWIDGET_STORMWIDGET_UILIBRARY_COPTIONUI_OPTIONUI_H
